package com.bruip.ch01;

/**
 * @author yuxi
 * @version 1.0
 * @date 2025/10/22
 * @Description:
 */
public class Test_lam {
    public static void main(String[] args) {
        //lambda表达式：无参数，无返回值，保留匿名内部类的功能
        Runnable runable = () -> {
            System.out.println("Hello World");
        };
        //行为参数化
        Thread thread = new Thread(runable);
        thread.start();
    }
}
